/**
 * auth: XiMengYao
 */
import React, { Component, lazy, Suspense } from 'react';
import { Switch, Route } from 'react-router-dom'
import PageIndex from '../pages'
import PageDetail from "../pages/PageDetail"

const routerConfig = () => {
  return (
    <Switch>
      {/* 使用 Route 渲染组件，注册路由 */}
      <Route path="/list" component={PageIndex}/>
      <Route path="/:id" component={PageDetail}/>
    </Switch>
  )
}

export default routerConfig